//
//  UserInfoM.h
//  YYFMMall
//
//  Created by chenzm on 2019/8/26.
//  Copyright © 2019 YuYou1. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface UserInfoM : NSObject

#pragma mark- 用户信息

#pragma mark - 登录信息
@property (nonatomic,copy) NSString *token;
@property (nonatomic,copy) NSString *userId;




#pragma mark - 自定义
/// 是否登录
@property (nonatomic,assign) BOOL isLogin;

///
@property (nonatomic,copy) NSString *loginAccount;
///
@property (nonatomic,copy) NSString *loginPassword;



+(UserInfoM *)getUserInfo;
/// 归档保存
+(BOOL)saveUserInfo:(UserInfoM *)user;
/// 清除归档
+(BOOL)clearUser;
/// 初始化配置
+(UserInfoM*)setDefConfig;



/// 登陆归档
+(BOOL)archiveUserLogin:(NSDictionary*)dic;

/// 用户信息归档
+(BOOL)archiveUserInfo:(NSDictionary*)dic;



@end


